import VueRouter from 'vue-router';
import Vue from 'vue';

import Homepage from '../pages/homepage';
import Login from '../pages/login';
import Login from '../pages/login';
import Dashboard from '../pages/dashboard';
import Employees from '../pages/employees';
import Structure from '../pages/structure';
// more pages here

Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        component: Homepage,
        children: [
            { path: '/', component: Dashboard },
            { path: '/employees', component: Employees },
            { path: '/structure', component: Structure },
        ],
    },
    { path: '/login', component: Login },
];

export default new VueRouter({ routes });
